package com.xm.event;

import java.util.EventListener;
import java.util.EventObject;

/**
 * 定义事件目标接口
 * @param <T> 继承java.util.EventListener的类
 */
public interface EventTarget<T extends EventListener> {
    void addListener(T listener);
    void removeListener(T listener);
    void dispatchEvent(EventObject event);
}
